package com.sinoframework.web.servlet.bean;
public enum ResultCode{
	
	BUSINESS_SUCCESS(2000, "操作成功"),
    BUSINESS_FAIL(2001,"拒绝请求"),
    BUSINESS_API_ERROR(2002, "外部接口异常"),

    SERVER_ERROR(5000, "未知错误"),

	
	USER_AUTHOR_FAIL(4001,"认证失败"),
	USER_AUTHOR_SUCCESS(2000, "认证成功"),
	USER_ACCESS_DENIED(4002,"授权失败");
	
    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

	public int getCode() {
		return code;
	}


	public String getMsg() {
		return msg;
	}

    
    
}